/*
 * @Author: Baishui
 * @Date: 2021-09-14 09:23:54
 * @LastEditors: 陈少泉
 * @LastEditTime: 2021-10-10 21:42:29
 * @Description: file content
 */

import { RouteRecordRaw } from 'vue-router'

const routes: RouteRecordRaw[] = [
  {
    path: '/charts',
    name: 'Charts',
    component: () => import('@/layout/index.vue'),
    meta: {
      title: '图表',
    },
    children: [
      {
        path: '/charts/echart',
        name: 'Echart',
        component: () => import('@/views/charts/echart/index.vue'),
        meta: {
          title: 'Echart',
        },
      },
      {
        path: '/charts/zender',
        name: 'Zender',
        component: () => import('@/views/charts/zender/index.vue'),
        meta: {
          title: 'Zender',
        },
      },
      {
        path: '/charts/d3',
        name: 'D3',
        component: () => import('@/views/charts/d3/index.vue'),
        meta: {
          title: 'D3',
        },
      },
      {
        path: '/charts/maptalks',
        name: 'Maptalks',
        component: () => import('@/views/charts/maptalks/index.vue'),
        meta: {
          title: 'maptalks',
        },
      },
      {
        path: '/charts/threejs',
        name: 'Threejs',
        component: () => import('@/views/charts/threejs/index.vue'),
        meta: {
          title: 'threejs',
        },
      },
    ],
  },
]

export default routes
